package com.fc.entities

import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.ManyToOne
import javax.persistence.Table
import javax.validation.constraints.Min
import javax.validation.constraints.NotNull

@Entity
@Table(name = "WorkoutEntry")
class WorkoutEntry extends BaseEntity {
	@ManyToOne
	@NotNull
	Activity activity
	
	@Column
	String details
	
	@Column
	@NotNull
	@Min(0L)
	Integer minutes
	
	@Column
	@NotNull
	@Min(0L)
	Integer series
	
	@Column
	@NotNull
	@Min(0L)
	Integer iteration
}
